
<?php 
	$nbSuggestion = $_POST['nbSuggestion'];
?>
<div class='div_h2'>
	<div class='div_content'>
		<h2>Suggestions</h2>
	</div>
	<?php if($nbSuggestion>4){ ?>
	<div>
		<span class='action icon_20 distate close fr' action='displayMoreFriendSuggestion' nbSuggestion='4' targetDiv='#friendSuggestion'></span>
	</div>
	<?php } ?>
</div>

<?php 
	for($i = 0; $i < $nbSuggestion; $i++){
?>
<div class='b_ea m_5'>
	<table class='w_100prc'>
		<tr>
			<td rowspan=2 class='w_20 h_20 p_5'><img class='w_20 h_20' src='<?php echo get_bloginfo('template_url'); ?>/style/generic/images/users/default.png'/>
			<td><a href='' class='userNickname'>Jérémydu93</a>
			<td rowspan=2><span class='tiptip action icon_20 add distate fr' action='requestFriend' friendID='17' title='Demander ce membre en amis'></span>
		<tr>
			<td class='c_9'>120 552 points
	</table>
</div>
<?php } ?>
<div class='txtr p_5'>
	<span class='action grey p_5' action='displayMoreFriendSuggestion' nbSuggestion='<?php echo $nbSuggestion+4; ?>' targetDiv='#friendSuggestion'>Afficher plus de suggestions</span>
</div>